<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	    <meta name="apple-mobile-web-app-capable" content="yes">
	    <meta name="apple-mobile-web-app-status-bar-style" content="#0A5AF9">
		<title>title</title>
		<link rel="stylesheet" type="text/css" href="../css/api.css" />
		<link rel="stylesheet" href="../css/ActivityCSS.css.css" />
		<link rel="stylesheet" href="../css/public-head.css" />
		<link rel="stylesheet" href="../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/Activity.css"/>
	</head>

	<body>
		<div class="Zhangice">
			<div class="data" id="pp1">星期五&nbsp;13:00</div>
			<div class="act">
				<img src="../image/icon/huodong@2x.png" />
				<p>新店开业,会员大放送</p>
				<span>2019年1月1日-15日,活动期间注册成为车车侠会员免费赠送车身养护一次,到店即获精美汽车礼品一份...</span>
				<div>
					<a href="#">查看详情>></a>
				</div>
			</div>
			<div class="phone"><div class="telephone"><img src="../image/icon/dianh@2x.png" />&nbsp;400-111-0771</div></div>

		</div>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/public-head.js"></script>
	<script type="text/javascript" src="../script/mui.js"></script>
	<script type="text/javascript" src="../script/rem.js"></script>
	<script type="text/javascript">
		headInner({
			title: "活动公告",
			//headleft
			headl: '<a href="#" style="color:white" class="mui-icon mui-icon-left-nav" tapmode onclick="api.closeWin()"></a>',
			//headright
			headr: '<a style="color:white"></a>',
			color: "", //默认是蓝色
			padding: "0px 15px 0px",
		})
   	function MessageCenter() {
		api.openWin({
			name: 'MessageCenter',
			url: '../html/MessageCenter.html'
		});
	}
	/**
 *获取当前时间
 *format=1精确到天
 *format=2精确到分
 */
function getCurrentDate(format) {
	var now = new Date();
	var year = now.getFullYear(); //得到年份
	var month = now.getMonth(); //得到月份
	var date = now.getDate(); //得到日期
	var day = now.getDay(); //得到周几
	var hour = now.getHours(); //得到小时
	var minu = now.getMinutes(); //得到分钟
	var sec = now.getSeconds(); //得到秒
	month = month + 1;
	if(month < 10) month = "0" + month;
	if(date < 10) date = "0" + date;
	if(hour < 10) hour = "0" + hour;
	if(minu < 10) minu = "0" + minu;
	if(sec < 10) sec = "0" + sec;
	var time = "";
	//精确到天
	if(format == 1) {
		time = year + "-" + month + "-" + date;
	}
	//精确到分
	else if(format == 2) {
		time = year + "-" + month + "-" + date + " " + hour + ":" + minu + ":" + sec;
	}
	return time;
}
//  alert(getCurrentDate(2));
var time = getCurrentDate(2);
// console.log(time);
document.getElementById("pp1").innerText = time;

function fh() {
	api.closeToWin({
		name: 'headPage'
	})
}
	</script>

</html>
